﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeptManagement.aspx.cs"
    Inherits="CURE.SystemManagement.DeptManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            height: 14px;
        }
    </style>
</head>
<body>
    <form id="pagerForm" method="post" action="SystemManagement/DeptManagement.aspx">
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="deptid" value="<%=Dept_id %>" />
    <input type="hidden" name="deptname" value="<%=Dept_name %>" />
    </form>
    <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="" method="post">
        <div class="searchBar" style="margin-top: 13px; margin-bottom: 13px">
            <table class="searchContent">
                <tr>
                    <td>
                        部门编号：<input type="text" name="deptid" value="<%=Dept_id %>" maxlength="10"/>
                    </td>
                    <td>
                        部门名称：<input type="text" name="deptname" value="<%=Dept_name %>" maxlength="10"/>
                    </td>
                    <td>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" style="width: 50px; height: 30px">
                                    检索</button></div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent" style=" margin-top:-2px;">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add" width="520" height="150" rel="AddDept" href="SystemManagement/DeptInformation.aspx?action=add"
                    target="dialog"><span>部门添加</span></a></li>
            </ul>
        </div>
        <div>
            <table class="table" width="100%" layouth="138">
                <thead>
                    <tr>
                        <th style="text-align: center;">
                            部门编号
                        </th>
                        <th style="text-align: center;">
                            部门名称
                        </th>
                        <th style="text-align: center;">
                            执行操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterDept" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td style="text-align: center;">
                                    <%#DataBinder.Eval(Container.DataItem, "DEPT_ID")%>
                                </td>
                                <td style="text-align: center;">
                                    <%#DataBinder.Eval(Container.DataItem, "DEPT_NAME")%>
                                </td>
                                <td style="text-align: center;">
                                    <a title="编辑" target="dialog" rel="EditUserInfo" width="520" height="160" href="SystemManagement/DeptInformation.aspx?action=edit&dept_id=<%# DataBinder.Eval(Container.DataItem, "dept_id")%>"
                                        class="btnEdit">编辑</a> <a target="ajaxTodo" href="Handler/DeptHandler.ashx?action=delete&deptid=<%# DataBinder.Eval(Container.DataItem, "dept_id")%>"
                                            title="确定要删除吗?" class="btnDel">删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                    <option value="<%=NumPerPage%>">选择</option>
                    <option value="20">20</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                    <option value="200">200</option>
                </select>
                <span>条，共<%=TotalCount%>条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=NumPerPage%>"
                pagenumshown="<%=PageNumShown%>" currentpage="<%=PageNum%>">
            </div>
        </div>
    </div>
</body>
</html>
